package homework;

/**
 * @author wly
 * @create 2022-12-11 10:04
 */
public enum Color implements IA{
    RED(255, 0, 0),
    BLUE(0, 0, 255),
    YELLOW(255, 255, 0),
    GREEN(0, 255, 0);

    private double redValue;
    private double greenValue;
    private double blueValue;

    Color(double redValue, double greenValue, double blueValue) {
        this.redValue = redValue;
        this.greenValue = greenValue;
        this.blueValue = blueValue;
    }

    @Override
    public void show() {
        System.out.println("redValue = " + redValue);
        System.out.println("greenValue = " + greenValue);
        System.out.println("blueValue = " + blueValue);
    }
}
